Skip to content

Instantly share code, notes, and snippets.

import React, { useEffect, useRef } from "react";
import {
motion,
useInView,
useMotionValueEvent,
useScroll,
useTransform,
} from "framer-motion";
export const ScrollAnimations = () => {
Download Debian BullsEye CLI for Rock 5A from here:
https://www.okdo.com/software-hub/
Burn that into SD Card and boot the Rock 5A / Rock 5A Pink
Log into the CLI from the console itself, using mouse and keyboard, or SSH into the Debian
then run these two commands:
apt install ssh ntp
sudo ln -s /lib/systemd/system/ssh.service /etc/systemd/system/sshd.service
@indyfromoz
indyfromoz / VNC_Server_On_Ubuntu_22.04LTS.md
Last active May 13, 2024 03:42
VNC Server setup on Ubuntu 22.04 LTS

Setup

Install TigerVNC -

$ sudo apt install tigervnc-standalone-server

Configure VNC Server by running

@dieu
dieu / Dockerfile
Last active May 13, 2024 03:41
Home Assistant Docker on Mac OS
FROM homeassistant/home-assistant:stable
# Install avahi-daemon in container
# https://gnanesh.me/avahi-docker-non-root.html
RUN set -ex \
&& apk --no-cache --no-progress add avahi avahi-tools dbus \
# Disable default Avahi services
&& rm /etc/avahi/services/* \
&& rm -rf /var/cache/apk/*
@hlung
hlung / How to connect PS3 controller to a Mac or PC.md
Last active May 13, 2024 03:39
How to connect PS3 controller to a Mac or PC

How to connect PS3 controller to a Mac or PC

This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!

A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.

Here are the steps:

@gabe565
gabe565 / change-arc-icon.md
Last active May 13, 2024 03:32
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@rssnyder
rssnyder / oracle-cloud-free-tier-guide.md
Last active May 13, 2024 03:27
oracle-cloud-free-tier-guide

how to leverage oracle's temping offers

free tier limits

The limits of the free tier say that you can create up to 4 instances.

  • x2 x86 instances (2core/1g)
  • x2 ampere instances (with 4core/24g spread between them)
  • 200GB total boot volume space across all intances (minimum of 50G per instance)

create your account

@ph33nx
ph33nx / adobe_exe_firewall_block_windows.bat
Last active May 13, 2024 03:25
Block All Adobe .exe files via Firewall on Windows Using Batch Script | Stop adobe apps to access internet
@REM Author: https://github.com/ph33nx
@REM Description: This script blocks or unblocks Adobe-related executables in Windows Firewall.
@REM Usage:
@REM - To block executables: adobe_block.bat
@REM - To unblock (delete) existing rules: adobe_block.bat -delete
@echo off
setlocal enabledelayedexpansion
REM Check if the script should delete existing rules
@brock
brock / nodereinstall.sh
Last active May 13, 2024 03:24
Complete Node Reinstall. I've moved this to a repo at http://git.io/node-reinstall
#!/bin/bash
# node-reinstall
# credit: http://stackoverflow.com/a/11178106/2083544
## program version
VERSION="0.0.13"
## path prefix
PREFIX="${PREFIX:-/usr/local}"
@consti
consti / hosts
Last active May 13, 2024 03:23
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost